.sidebar {
  width: 250px;
  height: 100vh;
  background-color: #2c3e50;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebarHeader {
  padding: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid #34495e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggleButton {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menuItem {
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}

.menuItem:hover {
  background-color: #34495e;
}

.menuItem.active {
  background-color: #3498db;
}

.menuItem i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.menuItem span {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .menuItem span {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sidebar.collapsed .menuItem i {
  margin-right: 0;
  font-size: 1.5rem;
}

.sidebar.collapsed .sidebarHeader span {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}